#if UNITY_EDITOR
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;


namespace XFGameFramework.EquipmentSystem
{

    public class CustomEquipmentConfigDataAssetNameGUI : CustomPropertyGUI
    {
        public override void OnPropertyGUI(SerializedProperty property)
        {

            EquipmentConfigData currentEquipmentConfigData = property.serializedObject.targetObject as EquipmentConfigData;

            if (currentEquipmentConfigData == null)
                return;

            if (currentEquipmentConfigData.equipmentType == EquipmentType.Script)
                return;

            GUILayout.BeginHorizontal();

            GUILayout.Space(30);

            EditorGUILayout.PropertyField(property);

            GUILayout.EndHorizontal();

        }
    }

}

#endif

